feat/add global SQS mode with single-queue-per-event and payload size control#1896
Merged
DavidsonGomes merged 6 commits intoEvolutionAPI:developfrom Sep 17, 2025
Merged
Conversation
Contributor
Reviewer's GuideThis PR enhances SqsController by adding a global SQS mode with unified queue provisioning, refactoring event routing and queue management to use a common prefix, enforcing payload size validation with S3 fallback for oversized messages, updating FIFO queue deduplication, and extending environment configuration to support new SQS global flags and server metadata. Sequence diagram for SQS message publishing with S3 fallback for large payloadssequenceDiagram
participant SqsController
participant SQS
participant S3Service
actor Logger
SqsController->SQS: sendMessage(message)
alt Payload size <= MAX_PAYLOAD_SIZE
SQS->SqsController: Message accepted
SqsController->Logger: Log success
else Payload size > MAX_PAYLOAD_SIZE & S3 enabled
SqsController->S3Service: uploadFile(message)
S3Service->SqsController: fileUrl
SqsController->SQS: sendMessage({dataType: 's3', data: {fileUrl}})
SQS->SqsController: Message accepted
SqsController->Logger: Log success
else Payload size > MAX_PAYLOAD_SIZE & S3 disabled
SqsController->Logger: Log error (payload too large)
end
Class diagram for updated SqsController queue management and event routingclassDiagram
class SqsController {
+init(): Promise<void>
+set(instanceName: string, data: EventDto): Promise<any>
+sendData(instanceName: string, event: string, data: any, ...): void
+saveQueues(prefixName: string, events: string[], enable: boolean)
+listQueues(prefixName: string)
+removeQueuesByInstance(prefixName: string)
-sqs: SQS
-logger
-monitor
-prisma
-configService
}
SqsController <|-- EventController
SqsController --> SQS
SqsController --> S3Service
SqsController --> ConfigService
SqsController --> Logger
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Collaborator
|
Please fix the lint with |
This was referenced Jan 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a global SQS configuration mode with unified queue provisioning and event routing, add large-payload handling via S3 fallback, and enhance queue management abstractions in SqsController.
New Features:
Enhancements:
Build:
Summary by Sourcery
Implement a global SQS configuration mode with unified queue management and add large-payload handling via S3 fallback, while refactoring SqsController to simplify dynamic queue routing and message handling.
New Features:
Enhancements:
Build: